<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var p = new Promise((resolve, reject)=>{
        try {
            reject("---")
        }catch (e) {
            console.log(e,"+++++++");
        }
    })
    console.log(p);
</script>
</html>